package cn.achao.csr.api.model.entity;

import java.util.Date;
import java.io.Serializable;
import cn.achao.csr.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (WxMsg)实体类
 *
 * @author achao
 * @since 2025-02-11 22:52:55
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMsg extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -80246945242233629L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id = super.getId();
    /**
     * 微信openid用户标识
     */
    private String openId;
    /**
     * 用户消息
     */
    private String msg;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * INSERT INTO `csr`.`leaf_alloc` (`biz_tag`, `max_id`, `step`, `description`)
     * VALUES ('seq_wx_msg', 1, 100, 'WxMsg主键');
     * @return
     */
    @Override
    public String sequenceCode() {
        return "seq_wx_msg";
    }
    
    public WxMsg(Boolean generateId) {
        super(generateId);
    }
}

